<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="questionViewBean"
		value="#{commonContentViewBean.getView(1)}" />
		
	<h:form style="margin:0" id="#{questionViewBean.id}_questionForm">
		<ui:decorate
			template="/layout/iteration/datatable/sino-datatable-single-handle-template.xhtml">
			<ui:param name="compId" value="#{questionViewBean.id}" />
			<ui:param name="compViewBean" value="#{questionViewBean}" />
			<ui:param name="compShowIndex" value="true" />
			<ui:param name="compOnRowSelectUpdate" value="" />

			<ui:define name="compButtons">
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','查看笔录问题信息','450','360','icons/cog_add.png','view','record-scene','rcd-question-view');"
					title="查看笔录问题信息" image="ui-icon-disk" value="查看">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','添加笔录','360','320','icons/cog_add.png','add','record-scene','rcd-question-add');"
					title="添加笔录" image="ui-icon-disk" value="新建">
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','编辑笔录','360','320','icons/cog_edit.png','update','record-scene','rcd-question-edit');"
					title="修改笔录" image="ui-icon-disk" value="修改">
				</p:commandButton>
				<p:commandButton
					actionListener="#{questionAction.delete}"
					onstart="if(confirm('确认要删除笔录问题吗？')){return true;}else{return false;}"
					update="#{questionViewBean.id}_questionForm"
					title="删除笔录问题" image="ui-icon-disk" value="删除">
					<h:inputHidden value="#{questionViewBean.id}" />
				</p:commandButton>
				<p:commandButton
					onstart="btnAction('#{commonContentViewBean.id}','','360','320','icons/cog_add.png','excel','record-scene','user-add');"
					title="导出Exel" image="ui-icon-disk" value="导出Exel">
					
				</p:commandButton>
			</ui:define>
		</ui:decorate>
	</h:form>

</ui:composition>
